#include "event.hpp"


Event::Event(){
	ID=0;
	timeStamp=time(NULL);
	eventTimeExe=time(NULL)+rand()%60;
	eventCommand="Test Command";
}

Event::Event(int x,string y){
	ID=0;
	timeStamp=time(NULL);
	eventTimeExe=time(NULL)+x;
	eventCommand=y;
}

Event::Event(const Event& a){
	ID=a.ID;
	timeStamp=a.timeStamp;
	eventTimeExe=a.eventTimeExe;
	eventCommand=a.eventCommand;
}

bool Event::operator < (Event comp) const{
	return this->eventTimeExe < comp.eventTimeExe;
}